<?php
	@session_start();
	include("../../connect/connect_mysql.php");
	
	$comment = $_POST['comment'];
	$link = $_POST['link'];
	if($link != ""){
		$query ="INSERT INTO `image` (`page_id`,`event_id`, `comment`, `link`, `is_deleted`) VALUES ('10',`0`,'$comment','$link','0');";
		mysql_query ("SET NAMES 'utf8'");
		mysql_query($query); 
		echo 1;
	}else{
		echo 0;
	}
	
?>